package com.baoyouqun.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName(value = "invoice_order_rel", autoResultMap = true)
public class InvoiceOrderRel implements

        Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键ID")
    private String id;

    @ApiModelProperty(value = "关联发票ID（invoice_record表）")
    private String invoiceId;

    @ApiModelProperty(value = "关联订单ID（order_record表）")
    private String orderId;

    @ApiModelProperty(value = "该订单在发票中的金额（元）")
    private BigDecimal orderAmount;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;


}